#include <QDialog>
#include <QGridLayout>
#include <QColorDialog>
#include <QPushButton>
#include <QSpinBox>
#include <QIcon>
#include <QComboBox>
#include <QLineEdit>
#include <QGroupBox>

#include "QCVCourbe.h"


class QAddCourbeDialog: public QDialog
{
	Q_OBJECT

	public:
		QAddCourbeDialog();
		
		QCVCourbe * getCourbe();

	public slots:
		void s_col(int);
		void s_pick_color();
		void s_name(QString s);
		void s_axex(QString s);
		void s_axey(QString s);
		void s_function(int func);

	private:
		QGridLayout * layout;
		QHBoxLayout * hlayout;
		QVBoxLayout * legend_layout;		
	
		QComboBox * cb_fonction;
		QGroupBox * gb_legend;
		QLineEdit * name,*axex,*axey;

		QPushButton * pb_color;
		QSpinBox * sb_col;

		QCVCourbe * courbe;

		QPushButton *pb_cancel,*pb_ok;

};
